package com.itmuyue.demo.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itmuyue.demo.entity.Name;
import com.itmuyue.demo.mapper.NameMapper;
import com.itmuyue.demo.service.NameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NameServiceImpl extends ServiceImpl<NameMapper,Name> implements NameService{
    @Autowired
    private NameMapper nameMapper;
    @Override
    public List<Name> list(){
        return nameMapper.selectList(null);
    };
    @Override
    public boolean save(Name name){
        return nameMapper.insert(name)>0;
    }

}
